package cn.dao;

import org.springframework.stereotype.Repository;

/**
 * Created by wsx on 2017/1/16.
 */
@Repository
public class UploadDao extends SpringDao{
    public boolean addfile(String sourcename,String fname,String fdesc){
        String sql = "insert into file values(?,?,?)";
        return jdbcTemplate.update(sql,new Object[]{sourcename,fname,fdesc}) == 1?true:false;
    }
}
